<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\grid\GridView;
use yii\widgets\DetailView;
use yii\widgets\Pjax;
use dmstr\bootstrap\Tabs;

/**
* @var yii\web\View $this
* @var yiike\company\model\TtycTokerComboOrder $model
*/
$copyParams = $model->attributes;

$this->title = Yii::t('models', '推客订单');
$this->params['breadcrumbs'][] = ['label' => Yii::t('models', '推客订单'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => (string)$model->title, 'url' => ['详情', 'id' => $model->id]];
$this->params['breadcrumbs'][] = 'View';
?>
<!-- flash message -->
<?php if (\Yii::$app->session->getFlash('deleteError') !== null) : ?>
        <span class="alert alert-info alert-dismissible" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span></button>
            <?= \Yii::$app->session->getFlash('deleteError') ?>
        </span>
    <?php endif; ?>
<div class="box box-info giiant-crud ttyc-toker-combo-order-view">
    <div class="box-header with-border">
        <div class="box-title">
            <?= $this->title ?>        </div>
    </div>

    <div class="box-body">

        <div class="clearfix crud-navigation">

            <!-- menu buttons -->
            <div class='pull-left'>
            </div>

            <div class="pull-right">
                <?= Html::a('<span class="glyphicon glyphicon-list"></span> '
                . '订单列表', ['index'], ['class'=>'btn btn-default']) ?>
            </div>

        </div>

        <hr/>
        <?php $this->beginBlock('yiike\company\model\TtycTokerComboOrder'); ?>

        
        <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
                'uid',
        'toker_id',
        'combo_id',
        'trade_id',
        'pay_id',
        'title',
        'sub_title',
        'price',
        'credit',
        'task_money',
        'task_tyc',
        'day_limit',
        'parent1_commision',
        'parent2_commision',
        'community_commision',
        'company_commision',
        'pid',
        'ppid',
        'community_id',
        'company_id',
        'is_pay',
        'pay_at',
        'status',
        'name',
        'location_p',
        'location_c',
        'location_a',
        'express_company',
        'express_code',
        'mobile',
        'address',
        ],
        ]); ?>

        
        <hr/>

        <?php $this->endBlock(); ?>


        
        <?= Tabs::widget(
                     [
                         'id' => 'relation-tabs',
                         'encodeLabels' => false,
                         'items' => [
     [
        'label'   => '<b class=""># '.Html::encode($model->id).'</b>',
        'content' => $this->blocks['yiike\company\model\TtycTokerComboOrder'],
        'active'  => true,
    ],
 ]
                     ]
        );
        ?>    </div>
</div>
